package com.hdax.dm.listener;

import com.hdax.dm.entity.scheduler.DmSchedulerSeat;
import com.hdax.dm.feign.order.DmOrderLinkUserFeign;
import com.hdax.dm.feign.scheduler.DmSchedulerFeign;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@RabbitListener(queues = "schedule_seat_update_exp")
@Component
public class ScheduleSeatRollback {

    @Autowired
    private DmSchedulerFeign dmSchedulerFeign;

    @RabbitHandler
    public void rollBack(String orderNo){
        dmSchedulerFeign.hyupdateScheduleSeat(orderNo);
    }

}
